/*
 * Extended to allow generating from multiple input models.
 * Based on: http://kthoms.wordpress.com/2011/07/12/xtend-generating-from-multiple-input-models/
 */
package cz.cuni.mff.d3s.arcas.ui;

import org.eclipse.ui.plugin.AbstractUIPlugin;
//import org.eclipse.xtext.builder.IXtextBuilderParticipant;
//import org.eclipse.xtext.builder.JavaProjectBasedBuilderParticipant2;

/**
 * Use this class to register components to be used within the IDE.
 */
public class DRDLUiModule extends AbstractDRDLUiModule {
	public DRDLUiModule(AbstractUIPlugin plugin) {
		super(plugin);
	}

	// XXX: Tu ma byt override, avsak to nefunguje. Asi kvoli tomu, ze sme zrusili Generator z Workflow.
//	@Override
//	public Class<? extends IXtextBuilderParticipant> bindIXtextBuilderParticipant() {
//		return JavaProjectBasedBuilderParticipant2.class;
//	}

	public org.eclipse.core.resources.IWorkspaceRoot bindIWorkspaceRootToInstance() {
		return org.eclipse.core.resources.ResourcesPlugin.getWorkspace().getRoot();
	}
}
